<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户注册</title>
<script src="./js/regist.js" type="text/javascript" charset="utf-8"></script>
<style type="text/css">
	input[type="text"],input[type="password"]{
		width: 300px;
	}
	.error{
		 display: none; 
		 color:red;
	}
</style>
</head>
<body>
<jsp:include page="/common.jsp"/>
<h1 class="title">用户注册</h1>
</body>
<form action="regist" method="post" onsubmit="return check_regist(true)">
	<table style="margin:auto">
		<tr>
			<td>账号</td>
			<td><input type="text" name="username" onchange = "check_regist()"><span class="error" id='username_error'>用户名不能为空!</span></td>
		</tr>
		<tr>
			<td>密码</td>
			<td><input type="password" name="password" onchange = "check_regist()"><span class="error" id='password_error'>密码不能为空!</span></td>
		</tr>
		<tr>
			<td>Email</td>
			<td><input type="text" name="email" onchange = "check_regist()"><span class="error" id='email_error'>邮箱格式错误!</span></td>
		</tr>
		<tr>
			<td>性别</td>
			<td>
				<input type="radio" name="gender" value="1" checked="checked">男
				<input type="radio" name="gender" value="0">女
			</td>
		</tr>
		<tr>
			<td>关注类型</td>
			<td>
				<input type="checkbox" name="type" value="法律法规">法律法规
				<input type="checkbox" name="type" value="管理办法">管理办法
				<input type="checkbox" name="type" value="决定条例">决定条例
				<input type="checkbox" name="type" value="细则解释">细则解释
				<input type="checkbox" name="type" value="规范指南">规范指南
			</td>
		</tr>
		<tr>
			<td>验证码</td>
			<td>
				<input type="text" name="code">
				<img src="img/captcha.jpg" height="25px">
			</td>
		</tr>
		<tr>
			<td colspan="2" style="text-align:center">
				<input type="submit" value="注册" style = "width:100px;height:30px">
			<td>
		</tr>
	</table>
</form>
</html>